package org.force4spring.query;

public class AliasedExpression extends PathExpression {
	private String alias;
	
	public AliasedExpression(String path, String alias) {
		super(path);
		assert (alias != null);
		this.alias = alias;
	}

	/**
	 * @see org.force4spring.query.PathExpression#buildSOQL()
	 */
	public String buildSOQL() {
		StringBuffer soql = new StringBuffer(super.buildSOQL());
		soql.append(" ").append(alias);
		return soql.toString();
	}
	
	
}
